-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code bug in parse config file. #4
Conversation
support.c
Outdated
@@ -246,7 +269,7 @@ void set_source_ip(const char *tac_source_ip) { | |||
int _pam_parse_arg (const char *arg, char* current_secret, uint current_secret_buffer_size) { | |||
int ctrl = 0; | |||
|
|||
if (!strcmp (arg, "debug")) { /* all */ | |||
if (!strcmp (arg, "debug") || !strcmp (arg, "debug=on")) { /* all */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is necessary for debug.
The reason of this change is because the tacplus_nss.conf config file using debug=on to enable debug. so we need change code here to enabled debug with the 'debug=on' setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not aware of the syntax of tacplus_nss.conf
. I found a sample https://github.com/stemid/tacacs/blob/master/libnss-tacplus/tacplus_nss.conf. Will you support debug=1
?
Could you explain the motivation in code comment or in PR description? |
Update the PR description in this PR: sonic-net/sonic-buildimage#8715 |
This PR is a draft PR to help review patch file change in sonic-net/sonic-buildimage#8715
The code change in this PR include:
Support debug=on setting.
Support put server address and secret in same row.